using System;
using System.Collections.Generic;
using System.Text;
using System.Collections;

namespace WebCrawlerTools.page
{
    public class PLoop
    {
        private LoopType type = LoopType.URL;
        private PNextRule rule;

        private string template = "";
        public string Template
        {
            get { return template; }
            set { template = value; }
        }

        public WebCrawlerTools.PNextRule Rule
        {
            get
            {
                return rule;
            }
            set
            {
                rule = value;
            }
        }

        public WebCrawlerTools.LoopType Type
        {
            get
            {
                return type;
            }
            set
            {
                type = value;
            }
        }
    }

    public class PUrl : PLoop
    {
        private string oldUrl;
        private string newUrl;

        public PUrl()
        {
            Type = LoopType.URL;
        }

        public String OldUrl
        {
            get
            {
                return oldUrl;
            }
            set
            {
                oldUrl = value;
            }
        }

        public String NewUrl
        {
            get
            {
                return newUrl;
            }
            set
            {
                newUrl = value;
            }
        }
    

        internal String GetNextPageUrl()
        {
            throw new Exception("The method or operation is not implemented.");
        }
    }
    public class PJs : PLoop
    {
        public PJs()
        {
            Type = LoopType.JavaScript;
        }
    }
}
